package com.xx.chb01.rabbitmq.config;

import com.xx.chb01.rabbitmq.constant.QueueConstants;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.amqp.core.Queue;
@Configuration
public class RabbitConfig {

    /**
     * 最简单的mq方式
     * @return
     */

    //队列名称
    @Bean
    public Queue Queue() {
        return new Queue(QueueConstants.queue_hello);
    }





}
